﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<tr>
    <td>
        <table width="100%" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr>
                                <td width="12" align="left">
                                    <img src="<%= Url.Content("~/Images/bg-title-blue-left.png") %>" width="12" height="46">
                                </td>
                                <td class="Bgtitle">
                                    <table width="100%" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="Title-white">
                                                DỰ ÁN MỚI NHẤT
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td width="17" align="left">
                                    <img src="<%= Url.Content("~/Images/bg-title-blue-right.png") %>" width="17" height="46">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="padding-top: 5px;">
                    <table width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                            <%if (Model.Products != null) %>
                            <%{ %>
                            <% foreach (var tmp in Model.Products)
                               { %>
                            <td>
                                <table width="212" style="height: 250px" cellpadding="0" cellspacing="0" class="Table">
                                    <tr>
                                        <td valign="top">
                                            <table width="100%" cellspacing="2" cellpadding="2">
                                                <tr>
                                                    <td>
                                                        <img src="<%= Url.Content(tmp.Image)%>" width="202" height="112" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <span class="Title-blue-small">
                                                            <%: tmp.Name %></span><br />
                                                        <span class="Text-blue">
                                                            <%= (Regex.Replace(HttpUtility.HtmlDecode(tmp.Description), @"<(.|\n)*?>", string.Empty)).Substring(0, 100)%>...</span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div align="right">
                                                            <span class="Link-organe">
                                                                <%: Html.ActionLink("Xem tiếp", "Detail", new { controller = "Product", ID = tmp.ProductId }, new { @class = "Link-organe" })%>
                                                            </span>&nbsp;
                                                            <img src="<%= Url.Content("~/Images/arrow-organe.gif")%>" width="4" height="7" /></div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <% } %>
                            <%} %>
                        </tr>
                    </table>
                </td>
            </tr>